package com.cloudkinto.service.operate;

import com.cloudkinto.entity.OperateRecordDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.operate.vo.OperateRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-07-09
 */
public interface OperateRecordService extends IService<OperateRecordDo> {

    SingleResult addInit();

    Object add(Object req, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<Object> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    List<OperateRes> getOperateList(Long thirdId, int type);

    boolean operateAddRecord(String content, Long thirdId, Long userId, int type);
    boolean operateAddRecord(String content, List<String> thirdIds, Long userId, int type);

    boolean operateAddRecord(String content, Long thirdId, Long userId, int type, String detail);

    boolean operateAddRecordAndValue(String content, String contentValue, Long thirdId, Long userId, int type);
}
